<?
include('includes/common.php');
include_once ('ws/xml_response_process.php');
OB_START();?>

<td id="main_content">
<?
$request = new WSRequest(XML_API, "CATEGORY_CONTENT", 0,GETPOST("id"));
$tour_list= new XMLprocess($request->wsanswer);
foreach ($tour_list->aItems as $one_tour)
    {
    $request = new WSRequest(XML_API, "ITEM_DETAILS", $one_tour["Code"]);
    $tour= new XMLprocess($request->wsanswer);
//var_dump($request->wsanswer);
//var_dump($tour);
    ?>
    <div class="category_title"><?=$tour->Title?></div>
    <div class="big_tour_top"></div>
    <div class="big_tour_body">
        <?=isset($tour->Image)?"<img src=\"$tour->Image\" class=\"illustration\">":""?>
        <div class="tour_prices">
            <? if ($tour->AdultPrice>$tour->WebAdultPrice) {?>
            Regular Price:  <span class="old">Adult: $<?=$tour->AdultPrice?>   Child: $<?=$tour->ChildPrice?></span>
            <?}?>
            Web Special:  Adult:  <span class="active"><?=$tour->WebAdultPrice?>$</span>
            Child (Ages <?=$tour->ChildAgeRange?>): <span class="active">$<?=$tour->WebChildPrice?></span>
        </div>
        <?=$tour->Description?>
    <div class="right"><br><a class="book_now" href="book.php?id=<?=$tour->Code?>"> BOOK NOW </a></div>
    </div>
    <div class="big_tour_bottom"></div>
    <?
    }
 echo "</td>";
  if(isset($article_)){ echo $article_; }
	$MAIN_BUFFER_CONTENT = ob_get_contents();
	OB_END_CLEAN();

	require_once(SKIN_PATH.'layout_main.php');
?>